﻿@model iPick.Models.Application
@{
    ViewBag.Title = "Filter Your Results";
    Layout = "~/Views/Shared/Mobile/_Layout.cshtml";

    SelectList _fromyear = new SelectList(Model.Filter.fromyear);
    SelectList _toyear = new SelectList(Model.Filter.fromyear);
    SelectList _usermovierating = new SelectList(Model.Filter.usermoviertating);
    int i = 0;
}

<div data-theme="d">
	<div class="genericTextContent">
		
		
@using (Html.BeginForm("Filter", "Home", FormMethod.Post))
{
    
        <div class="genericTextContent">
        <table>
        <tr>
        <td><label for="select-choice-0" class="select">From:</label></td>
        <td>
        
        		
 @Html.DropDownListFor(m => m.Filter.fromyear, _fromyear, new { name = "select-choice-0", id = "select-choice-min" })
        
        </td>
        <td>
        	<label for="select-choice-0" class="select">To:</label>
        </td>
        <td>
        
         		
  @Html.DropDownListFor(m => m.Filter.toyear, _toyear, new { name = "select-choice-1", id = "select-choice-min" })

        
        </td>
        </tr>
        
        </table>
	<table>
    <tr>
    <td>
   User Rating:
    </td>
    <td>
      @Html.DropDownListFor(m => m.Filter.usermoviertating, _usermovierating)
    </td>
    </tr>
    

    </table>
    <table>
    <tr>
    <td>MPAA Rating</td><td>@Html.EditorFor(m=>m.FilterOptions)</td>
    
    
 
     </tr>
    </table>

         

  <input type="submit" value="Apply Filter" />
		</div>
}
	</div>
    </div>

